//
//  MainViewController.swift
//  DouYuZB
//
//  Created by 刘耀 on 2017/4/11.
//  Copyright © 2017年 深圳多诺信息科技有限公司. All rights reserved.
//

import UIKit

class MainViewController: UITabBarController {
    
    override func viewDidLoad() {
        super.viewDidLoad()

        addchildVc(storyName: "Home")
        addchildVc(storyName: "Live")
        addchildVc(storyName: "Follow")
        addchildVc(storyName: "Profile")
        
    }
    
    private func addchildVc(storyName: String) {
        let childVc = UIStoryboard(name: storyName, bundle: nil).instantiateInitialViewController()!
        addChildViewController(childVc)
    }

    


}
